package finance

import (
	"github.com/astaxie/beego/orm"
	"time"
)

type FinanceData struct {
	Id              int       `orm:"pk;auto"`
	FinanceDate     string    `orm:"description(财务月份);size(32);column(finance_date)"`
	SalesVolume     float64   `orm:"digits(10);decimals(2);description(本月销售额)"`
	StudentIncrease int       `orm:"description(学员增加数)"`
	Django          int       `orm:"description(django课程卖出量)"`
	VueDjango       int       `orm:"description(vue+django课程卖出量)"`
	Celery          int       `orm:"description(celery课程卖出量)"`
	CreateDate      time.Time `orm:"type(datetime);auto_now"`
}

func (c *FinanceData) TableName() string {
	return "sys_finance_data"
}

func init() {
	orm.RegisterModel(new(FinanceData))
}
